From: Florian Müllner Date: Fri, 1 Feb 2019 19:11:39 +0000 (+0100) Subject: extensionPrefs: Work around xgettext bug X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~51 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5dbf09c0082cc75c498fd277929776adbecc7bca;p=gnome-shell.git extensionPrefs: Work around xgettext bug xgettext is thrown off by the combination of backticks and slashes, which makes template string a fun trap to fall into. Just use String.format() for now ... https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/383 --- diff --git a/js/extensionPrefs/main.js b/js/extensionPrefs/main.js index cb7d9edd6..bfa820b59 100644 --- a/js/extensionPrefs/main.js +++ b/js/extensionPrefs/main.js @@ -118,7 +118,7 @@ var Application = class { scroll.add(box); let label = new Gtk.Label({ - label: `${_("Something’s gone wrong")}`, + label: '%s'.format(_("Something’s gone wrong")), use_markup: true }); label.get_style_context().add_class(Gtk.STYLE_CLASS_DIM_LABEL);